home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / jetski.swf / scripts / DefineSprite_342 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  490 b   |  18 lines

  1. var mcV = this.airPlaneM;
  2. mcV._x = this._width / 2;
  3. mcV.targetXPosV = (this._width / 2 + mcV._width) * -1;
  4. mcV.moveStepV = 2;
  5. mcV.onEnterFrame = function()
  6. {
  7.    var _loc1_ = this;
  8.    _loc1_._x -= _loc1_.moveStepV;
  9.    if(_loc1_._x <= _loc1_.targetXPosV)
  10.    {
  11.       _loc1_._x = _loc1_._parent._width / 2;
  12.    }
  13. };
  14. this.visualSpeedM._x = this._width / 2 * -1;
  15. this.visualSpeedM._visible = false;
  16. this.visualPowerM._x = this._width / 2 * -1;
  17. this.visualPowerM._visible = false;
  18.